<template>
  <el-form label-width="100px">
    <el-form-item label="SPU名称">
      <span>{{ spuInfo.spuName }}</span>
    </el-form-item>
    <el-form-item label="SKU名称">
      <el-input placeholder="SKU名称"></el-input>
    </el-form-item>
    <el-form-item label="价格(元)">
      <el-input-number class="mx-4" style="width:100%;" :min="1" :max="10" controls-position="right" />
    </el-form-item>
    <el-form-item label="重量(千克)">
      <el-input-number style="width:100%" class="mx-4" :min="1" :max="10" controls-position="right" />
    </el-form-item>
    <el-form-item label="规格描述">
      <el-input type="textarea" rows="4" />
    </el-form-item>
    <el-form-item label="平台属性">
      <el-row :gutter="20">
        <el-col :md="12" :sm="12" :xs="24" :lg="8">
          <el-form-item label="手机内存">
            <el-select>
              <el-option value="one" />
              <el-option value="two" />
            </el-select>
          </el-form-item>
        </el-col>
        <el-col :md="12" :sm="12" :xs="24" :lg="8">
          <el-form-item label="电池容量">
            <el-select>
              <el-option value="one" />
              <el-option value="two" />
            </el-select>
          </el-form-item>
        </el-col>
        <el-col :md="12" :sm="12" :xs="24" :lg="8">
          <el-form-item label="手机相素">
            <el-select>
              <el-option value="one" />
              <el-option value="two" />
            </el-select>
          </el-form-item>
        </el-col>
        <el-col :md="12" :sm="12" :xs="24" :lg="8">
          <el-form-item label="机身内存">
            <el-select>
              <el-option value="one" />
              <el-option value="two" />
            </el-select>
          </el-form-item>
        </el-col>
      </el-row>
    </el-form-item>
    <el-form-item label="销售属性">
      <el-row :gutter="20">
        <el-col :md="12" :sm="12" :xs="24" :lg="8">
          <el-form-item label="手机内存">
            <el-select>
              <el-option value="one" />
              <el-option value="two" />
            </el-select>
          </el-form-item>
        </el-col>
        <el-col :md="12" :sm="12" :xs="24" :lg="8">
          <el-form-item label="电池容量">
            <el-select>
              <el-option value="one" />
              <el-option value="two" />
            </el-select>
          </el-form-item>
        </el-col>
      </el-row>
    </el-form-item>
    <el-form-item label="图片列表">
      <el-table border>
        <el-table-column type="selection" width="60"></el-table-column>
        <el-table-column label="图片"></el-table-column>
        <el-table-column label="名称"></el-table-column>
      </el-table>
      <el-button type="primary">保存</el-button>
      <el-button>取消</el-button>
    </el-form-item>
  </el-form>
</template>

<script lang="ts">
export default {
  name: 'SkuForm'
}
</script>

<script lang="ts" setup>


// 接收父组件传递的数据
const props=defineProps(["spuInfo"])




</script>

<style>

</style>